//
//  TestVC.m
//  X-Touch2
//
//  Created by shengchao yang on 12-3-16.
//  Copyright (c) 2012年 foxhis. All rights reserved.
//

#import "TestVC.h"
#import <Foundation/Foundation.h>

// 第三方库
#import <TapkuLibrary/TapkuLibrary.h>
#import <FTUtils/FTAnimation.h>

#import "MenuBookChoose.h"

@implementation TestVC

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
        
        MenuBookChoose *mbc = [[MenuBookChoose alloc] initWithNibName:@"MenuBookChoose" bundle:nil];
        mbc.view.tag = 101;
        mbc.view.frame = CGRectMake(500, 100, 200, 300);
        [self.view addSubview:mbc.view];
        [mbc release];
    }
    return self;
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
}

#pragma mark - View lifecycle

- (void)viewDidLoad
{
    [super viewDidLoad];
}

- (void)viewDidUnload
{
    [super viewDidUnload];
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationLandscapeRight || interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
}

- (IBAction)btn1:(id)sender {
    [[self.view viewWithTag:99] fallOut:1.0 delegate:nil];
}

- (IBAction)btn2:(id)sender {
    [[self.view viewWithTag:101] fallIn:1.0 delegate:nil];
}
@end
